package com.richman.utils;


import java.util.Comparator;

public class ProfitAsc implements Comparator<String[]> {
	 public int compare(String[] a, String[] b) {

			 try {
				 
				 if( Integer.parseInt(a[4]) < Integer.parseInt(b[4]) ) {
					 return 1;
				 }else if(Integer.parseInt(a[4]) == Integer.parseInt(b[4])) {
					 return 0;
				 }else {
					 return -1;
				 }
				 
			 }catch(Exception e) {
				 return 0;
			 }

	    }
	}
